﻿#ifndef SHELLDIALOG_H
#define SHELLDIALOG_H

#include <QDialog>

namespace Ui {
class ShellDialog;
}

class ShellDialog : public QDialog
{
    Q_OBJECT

public:
    explicit ShellDialog(QWidget *parent = 0);
    ~ShellDialog();

signals:
    void SignalSerialWriteStr(const QString&);

public slots:
    void SlotShellRecv(const QByteArray&);

protected:
    bool eventFilter(QObject *target, QEvent *event);

private slots:
    void on_clrBtn_clicked();

private:
    QString getCorrectUnicode(const QByteArray&);

    Ui::ShellDialog *ui;
    QString m_input;
};

#endif // SHELLDIALOG_H
